export function getCurStrDate() {
    let now = new Date()
    let year = now.getFullYear()
    let month = now.getMonth() + 1
    let day = now.getDate()
    let date = year + "-"
    if(month < 10) date += "0"
    date += month + "-"
    if(day < 10) date += "0"
    date += day
    return date
}

export function isInt(input) {
  var reg = /^[1-9]+[0-9]*$/
  return reg.test(input) ? true : false
}
